Add comment explaining baseline, as requested by Robert.
Rename fixPathAttrs_ to cleanPathAttrs_ as requested.
Add more type annotations to make the flow of point data clearer.

Unfortunately it's still not very clear, the logic is a bit convoluted.