Added java's comments for methods.