implemented compareName -- see #6
implemented exportName and canonicalizeName -- see #6