Documented everything using the YUIDoc tool.