Use pl.xml to parse file directly, rather than reading it into a string first.
Documentation change.
Re-enabled distance test.
Renamed function append_waypoints to create_waypoints.