Reacts to cursor distance from target center

Gets rid of the ugly gimbal-lock feel when you cross an axis near the target's center.
Merge branch 'Fusty-gh-pages' into gh-pages
Made ditance optional and made all code use same style