more cleaning up of the functions.  create_lines2 has been renamed to create_lines and replaces the old version.