tweaks and upgrades

-now filters out nearly vertical lines
-cleaned up print statements