Fixed a lot of dodgy code via linting