added JavaDoc to all methods
added JavaDoc to all methods