Complete circularBufferRemove(), added test code and comments