minor changes to add torsion angles