Added a lot of docs and a using yuidoc for building documentation (added to the build script). Some fixes

Signed-off-by: Yannick Comte <ycomte@wanadev.fr>