MaxDist implemented

MaxDist implemented, and feedback scaled off maxDist