Updated.

Added CMP_REG function.
Added example of the reg-comparison function.
  Move examples into subdirectory
  Updated to cope with moved examples.