Tweaks and addition of getOpenFileDialog().