Updated main to play nice with Codeblocks, and added lots more to the .gitignore.