Further work on the sliding plane

Code fully re-written from scratch, no bugs thus far, and all working
swimmingly