Added ability to see if tasks are ready to run, and to clear the task queue
Also added javadocs for protected functions