Formatted code, removed unnecessary imports, and added javadoc comments
to the testing classes.