Added javadoc and pretified.