Add initial error checking to buffer wrapper methods
Implement buffer methods (OCL1.0), compiling, not tested