Make comments in main an init doxygen compatible

Fix typos where appropriate
Update license/copyright
Merge pull request #5403

c5b390b Make comments in main an init doxygen compatible (Michael Ford)