Included working example of task for add, remove and publish
some code cleaning