Finalized API for buffer. The whole thing should work now but I still have to write tests to confirm.