Fixed formatting and added javadoc