clean latex doc for segments
segment docs
cleanup
segment solver outline
segment solver refactoring