Wip

* better dzil packaging
* added debug and mir functions