major revisions to logging, argument parsing in cmain.cpp