Added tests for globals.
Added docs for lib/common/modifiers, relates to issue #45