remove extra parentheses from compare() example
added missing export of compare() function