docs: Expand DG tutorial, other refactoring