Add DataCollector

Fix #6
I think enabling it by default in debug mode would be a much more sensible default