Cleanup

Corrected code formatting of pointers and references in comments to facilitate global search and replace.
Then removed const from simple parameter types like bool, int32_t, enum, etc.