Adding solution to problem 7, updating Javadoc

Adding a basic solution to problem 7, updating some Javadoc and test.