Finish test case, rename main class, add javadoc for the second question.