More docstring revisions, changed type checking amd key-in-map checking to be shorter to write.