update documentation to match latest code