fixed problem with angles. Still wrong atom indexing in angles