added methods to buffer to test with connector, also changed the name
Buffer class changed to buffer