Refactors and updated YUI Doc