Changed output to STATFILE, also change the way the transform is beign calculated
from the "rototranslation".