decoupled max search iterations and iteration speed
homogenised image functions
removed duplicate search
renamed end to goal
modified wald to use the new end reference
added diagonal movement option