open dialog functions

Has functions to initialize file structure and to show the open file
dialogue.  To be copied and pasted into appropriate places