Tidied up regions.
Switched backing property of distance to decimal

Old code used long. Using decimal allows for fractions of a mm and more
precision.