Update script for generating documentation

- Generating API doc
- Generating impact function doc