removed a main tester method, added javadocs