added coveralls, refactored change gravity method