feat: adds includeStackTrace flag for longer error reporting.

Adds `includeStackTrace` flag.