Fixed documentation.
Renamed keyfmt to format_key and updated docs.