thread fix and additional minor stuff

-moveToThread error fix
-added multisampling
-added applicationDirPath() function