Licensing

Added the GPLv3 license to some files in addition to fixing some
comments at the beginning of the files.
Small change
Formatting.

Many stylistic changes, mostly formatting code more closely to the
coding style.
Minor screwup fixed

I sure wish it was easier to compile on Windows.
Merge pull request #103 from SilentSand/master

Licensing