Fixed a few typos and major linter errors