Fix errors with arguments.
Clean up help output.
Add sentinel to prevent jvm exit.
Add tests for arg processing.