added -h option to command line