Updated scripts

Updated scripts with better documentation explaining what's happening