add documentation to ContextManager