Final changes to circular buffer
Merge pull request #350 from kateknister/master

Changed memory storage to a circular buffer