Added java doc to all methods