Fixed absent-file errors and added file-select

There was an error which occured if the data file is absent.
Added option to select data file.