Updated TaskManager.java: continued refactoring and inserting Javadoc
and in-line comments.