fixed bug and added torsion histograms