Introduce grunt-contrib-yuidoc and do that
Separate lib class from main
Minor tweak to index