fixed some memory leaks

updated documentation to hide private information
added framebuffer accessors