fixed demo. added before/after callbacks. fixed template-engine. :).