Accounting for possibility of blank lines in input file.
Eliminating redundant point drawing.