added basic javadoc

missing description about the purpose of the method