Start to move to buffers for serialisation
Add in testing script
Make buffers work
Merge branch 'buffers'