Added the new script files
Minor changes to fix the code