Added doc generation

This is basic yuidocs, needs improvement.