Ready for use under supervision

The code needs to be tidied up and documented