Improves error handling when failing to read csv file.
Improves error handling when failing to find dir.
Bugfix: open files not in current dir now works.