Add basic buffer initialisation
Add query functions
Add begin_access() and end_access()