check if file exists
error on non existing file
hide error message with non reachable api
Merge pull request #9 from wmde/refactoring

Refactoring