Added scalefactor to argument of updatepositions
Added scalefactor as an argument
Added basis rotation into account when updating positions
Added scalefactor as argument