Fixed all the bugs prior to running the code.
Good Luck!