Update 1

Implemented rolling buffers to improve memory efficiency.  Removed
(currently) unused mex stuff