Updated, audited and rewrote example code.

[UPDATED]   Example code reworked for latest USM.