Docs changes for close/context manager
tests for close and context manager