Added some more methods to circular buffer utils
Removed some dead code