fixes and output tweaks

* add init() option for code which should execute at the start of the task
* fix "invalid assignment" error in report writer error handler
* enrich report data