added ability to delete documents and a rudimentary flash notification.
Work in progress.