Java Doc added
Java Docs added, validation method updated