Switched the sign convention for the mouse to ground distance
Minor other changes