Tidied up proof of concept

Proof of concept draft, commented and tidied up