Change logic for opening files.
Update README.