cleaned up brkt in preparation for circular buffer
brkt now correctly reads a buffer where start > end
cleaned up brkt write
cleanded up docs, fixed lack of compilation