added code and doc for generation of chunk id