Added a README
Refactored error.js a bit