Write documentation for boolean path operations.
Improve code comments a bit.