javadoc updated.
added validity class