Added JavaDoc.
Added IterativeTaskManager
Added more verbosity to errors.