Fix COMMON, doxygen code cleanup

Add dev mode command line option and other source code fixes.