Code Improvement

- Added isError function to "index.js" instead of checking ".name" to
  find out if an error has returned
- Added support for being able to add both strings and regexes to the
  exclusion patterns