various bug fixes
command line help now working