added few javadocs