Optimize documentation and generation of it