add globalize function
fix stack trace and add tests
include common-errors as dev dependency for tests
add option to not globalize
update documentation
Merge branch 'feature/global_extend'
increase version number