Add documentation and examples
Change how the preview is cleaned when it is being closed