Alot of small stuff and fix for issue raised by Lude

Warning this only fixes it for the normal metaqtl 3! Other ussages of the calculationthread and trityperexpressiondata should be checked!