merger of partial recursion solution and javadoc changes.