Added clear function to TaksManager.
And edited some comments.
Updated some comments.