add commentaries and .bat for doc generation