Adding the ability to label lines, add line segments, and fixing a few bugs