Also it would be helpful if i come to know how should i use it with sample codes.
Also it would be helpful if i come to know how should i use it with sample codes.
Please go through the SDK documents[google for NRF51 SDK] for information on profiles that can be used for specific application that you are designing.You can use the SIG profiles or even create your own custom profile.
Your question is very vague. I suggest you do as @Punitc suggests. Also you should check out the tutorial section here on devzone. There you will find some guides on how to get started.
Here you will find documentation on the SDKs and the nRF51.
When you are ready to save power, you can have a look at this great current consumption guide.