Fix documentation.
Fix filling of key indices.
Use key pattern extractor to find correct reader functions.