finalised TP rewrite + bugfixes and installer