Added vars for the id and label keys in the to-map function.  Also added functions to modify the vars.  Lastly, added unit tests to show the functionality.