Can now reliably change a line's color. Added optional legend and ability to add custom legend labels.