Add missing doxygen doc and style of arg checking

* Fix missing doxygen documentation.

* Change to have consistent style of argument checking