Fixes rendering for Windows, improved template error handling, export feature