Update throttler.sh

* Cleaning the code and just keeping the necessary lines.
* Adding code sections to make the code more clear
* Adding a part for user to config the checking interval