Fix error in control points example and assorted typos

This fixes a mistake in the control points "example" - `.y}])` was missing from the end. Since I didn't feel that it was much of an example, I've also expanded it a little to show how the `line` generator should be created. This also fixes a handful of additional typos.