From Magnus Kessler, typo fixes to doxygen docs and comments