Added custom error handler
No longer using fs.readFileSync ಠ_ಠ