Code refactoring and cleanup.   Added documentation to TaskTracker CSPS