Changed buffer switching binding. Added go bindings