complete refactor, which uses an init script, makes all the class params configurable, has spec test stubs, etc.