Migrated doco for modules from wiki.
Added syntax highlighting to code samples in doco.