0.4.0 improved template rendering + a lot of bugfixes