added DirectoryFilter, altered showSelectFileDialog