copied code from sandbox
removed .un~ files
updated .gitignore
have option parsing and filename reading set up