Change distance now works; added error to distance box; fixed minor bugs