Implemented basic file inputter.

Changed some Fatalf calls to Errorf to allow tests to continue
running if error is encountered.