Adding missing optimist dependency.
Adding a few more flags.