errors fixed, horizontal energy and auxvec correct