Fixed yui encoding. Added some docs.