Added java doc to methods and statements