Refactored the create and set methods.  Removed comparison mode from the structure - it is only used as a parameter to the comparison functions now.