Throw more relevant exceptions
Created a File helper, and some tests for it