Major update

Thumbnails working
Better output file TMP folder management