Fix code to be of 80 chars width
Fix crash on single tap

Draw a squiggle only if it has more than 0 points.

Remove extraneous whitespaces and fix indentation.