Added dependencies to repo to ensure tests can run via command line. Added compile and test script. Fixed minor bugs.