Added exception handling for file not found

Fixes issue #17