fixed small errors in waypoint class