Simplifier partially working, but in dire need of a cleanup

Internal lines are not yet correctly simplified but at least align -
outer lines are correctly simplified.