code cleanup and build
added AddTask function