cleanup: remove trailing newlines
consistent include guards
indent preprocessor #ifdefs