Implement standard coding convention; fix Windows crash bug

Review individual commits for more information.

Please follow a standard when coding - everything is different all over the place. I have added a CONTRIBUTING.md file, to describe this process.

I also fixed the additional space bug upon writing configuration; this previously caused a crash upon second run of Cubition.