add command line options and manpage