Add object type to read_keys
Fix documentation