Fixed an update bug in updateAtomPositions() where initialCOG was being updated rather than the atom positions