Updated TaskManager.java: continued adding Javadoc and relevant in-line
comments, continued refactoring and removing extraneous and unnecessary
code.