Added a more flexible simplification of the path stems.

4 pt paths can be simplified to a straight line if applicable. I added this to the optimization method as opposed to initial connecting method so a path can be simplified if a box is removed which allows a separate path to be simplified to a straight line.