modify generate documentation script