Stopped to check the code
added notes to script
added some notes