Programming nrf5e with accelerometer

Hi guys, I just ordered doc.mokotechnology.com/index.php device which is nrf52 + accelerometer + firmware that is just broadcasting the location over BLE. This is almost what I want, I just need to customize the device a little. What I need is just the BLE to advertise simple encrypted UUID and when the accelerometer detects movement, the device to stop advertising.
I'm new to programming with Microcontrollers and especially with the Nordic spec.
 
So, my questions are:
1. Which example from the SDK examples to use in order to have a min. changes ?
2. Is there a guide that I can read that will give me a clue what I need to change and how to do it ?

Regards,
Milen Yanchev