minor updates, cleanup
starting work on coffeescript version
working on moving to mocha-based unit tests