Cleaned Up the script and fixed typos

and also removed some debug code