Finished initial test cases.
Updated javadoc.