Cleanup comments and trim whitespace
Cleanup the imports
Add const, pure, nothrow, and @safe where possible