1. Download and install Odin on your PC.
2. Once you have Odin installed, download the proper .tar file for your device from the download link above.
3. Power off your device. Turn on your device using the proper key combo to get into download mode and attach the device to your computer via a USB cable
4. Use the PDA tab or button to browse to and select the tar file that you downloaded and flash the device.
Everything mentioned above is here
Note many devices will replace your custom recovery automatically during first boot. To prevent this, use Google to find the proper key combo to enter recovery. After typing fastboot reboot, hold the key combo and boot to TWRP. Once TWRP is booted, TWRP will patch the stock ROM to prevent the stock ROM from replacing TWRP. If you don't follow this step, you will have to repeat the install.
Aman-kumar (Fire-Lord for cwm build