added setUNF and compareUNF functions and docs
minor changes