Added the sigmoid to allow for nearby targets to not switch
Sigmoid function needs tweaking.

Also added some documentation I sent to Dr Rogers