Added Polyline method. Improved commenting.

Added a lot of missing commenting for methods, as well as a small class
comment header.
Added a polyline method for any number of connected points, provided via
a parameterized array.