Add toString method, javadoc.