added command line options -m -h -v.