Various doc fixes.
Updated type_map to the expected syntax
Added default value for path attribute. Updated key handling of type_map. Removed obsolete get_opt/2
Merged with Ulf