write sum-max-max2 as d3
cleanup penalty calculation
combine base info in one struct

prepare for further changes
no effective changes
keep part of quality
trackback even if we make no corrections