Optimized lot of code, solved 2 missing semicolons, still requiring optimizations.