Inline doc-fold
Inline formats routines
Shuffle routines around
Better, but now fails on some solvable problems