Fixed All Errors

Got you covered Sam! Fixed all missing semicolons, invalid function declarations and variable callings.