updated TOC links; updated whitespace rules
cleaned up spacing; clarified parentheses style; tweaked naming convention for functions
updated comment style;  removed singleton example;  added class examples with doc comments
added yuidoc reference; added OO vs. procedural section
added TOC entry for OO vs procedural