updating code so that it can reconstruct backbone from dihedral angles