fix error message for bad command line
updates to check_sanity
cleanup of option_spec