added command line options to whoosh and port