added visualization, flexible prediction, and am improving trestle matching.