complete script to generate doc from source
final a few touches to generate the doc
updated document, which is generated now