Fixed some module add bugs, and started using the YUI namespace function.