improved context tests, started documentation