-can now open files from file menu and from a drag-n-drop on the dock icon
-added checks on file types