Adding error handler. Starting docs