Simplified compile result

* Added debug logging to compile, pre-dispatch context
* Updated examples and middleware