Added javadoc to validate classes