A lot of bugfixes and added PDF-Export function