Refactor the collect task
Add a map and vocabulary

To make sure we're on the same page.
Refactored main and trace tasks
Remove unnessary stop engine call
fix declaration orders and return types
Merge pull request #2 from afflux/refactored

Refactored