Fixed sourcebuffer class as well as documentation.