Assing Error typeof assertions
Fixing stack trace capturing and switching back to util.inerhits
Adding JSDoc comments