small fixes to fitting and transforms; added function transforms.anglesToGVec