Code cleanup and commenting.
Changed example to be cleaner Module version.