Documented package-accessible static fields, fixed a few errors, implemented command line arguments. Invalid commands are still not handled.