distance calculation moved to new tools module
added verification failure error code
refactoed some things into new tools module
added constants for known custom modes
continued work on controller development