add euler angles to APW potential
fix acceleration