Adds DebugGetBestTarget to settings allowing for MUCH more logging in the GetBestTarget routine. + misc fixes