Introduce class PencilError
Use PencilError when file loading failed
Add Unit tests for file loading.