A few minor changes to formatting
Minor changes to comments
Changed routine for drawing a rectangle into one that draws a polygon - used for highlighting selected lines, signals, etc.
Swapped key used to select a line with key used to turn locking on or off