FLASHING CWM/STOCK RECOVERY
#Copy the downloaded image file to the folder in your PC where you have set up ADB and fastboot.
#Rename the file to recovery.img
#Turn off your phone. Enter fastboot mode by holding the Power and Volume + button for some time.
#Release both buttons when you see a green screen on your phone.
#Plug in the phone to PC using USB cable, wait for the drivers to install and finish setting up.
#If you are in Windows XP, open command prompt and browse to the folder where you have setup ADB. Or if you are in Windows7/8, hold shift then right click in the ADB folder and click to open command prompt there.
#Type this in the command prompt :
#This should display your device name in fastboot mode, if nothing is shown, then you have to check previous steps again.
#Type this command to flash CWM recovery to your phone :
fastboot flash recovery recovery.img
#It will show the progress and completion dialogue within seconds when it finishes successfully.
#That’s it! CWM Recovery has been installed successfully. Now you can try if CWM is working by entering recovery mode as follows :
#Remove battery of your phone and reinsert.
#Press Power and Volume+ buttons and keep holding it for some time.
#When you see a green screen, you can leave the power button but keep holding Volume+ button.
#Now you will shortly see a red screen, then press the Home button on your phone.
#You should see CWM now, otherwise try the whole process again. Once you are inside CWM, use your volume keys to navigate the options and power button to make selections.
FLASHING STOCK BOOT
#Go to fastboot mode as explained above.
#make sure your device is shown in command prompt
#copy the boot.img to the fastboot folder
#flash the boot sector with the boot image
fastboot flash boot boot.img
##remember the last part of the code may be modiffied according to the boot image name
fastboot flash boot stockboot.img
#AwesomeBEATS v.5 by ...Awesome...(for better music quality) - official thread-http://forum.xda-developers.com/show....php?t=1728391
[tested on S5 by me- credits:...Awesome..]