Added option to create new document or basically reset