changed some stuff around, added press enter to start calculation, added
ability to change the distance