changed how gravity works and added debug features