Improve the inline documentation and generate new docs