adds docs for generate_fragments