Tweaking spot location

Re-writing optimiseSpot and adding plotting function for debugging