Applied the new context idea to the lib. Documentation todo.
Context integrated, tested, sample modified, not yet documentation generated.
Final commit into version 1.1 -- added user-defined contexts.