Implemented removeTask method
Removed debugging code