use new API for measuringTape
consolidate some of the common constants of the simulation
hoist constants at the top in Grid