minor changes

worked on doc_display() some, started with doc_delete(), thought about
how very much I am not prepared to do this well, did some more anyway!