adding exception handling for the line width and dash length text fields. Also adding miscellaneous comments and cleaning up code for project submission