Worked on improving documentation: commenting code for javadocs.