Known bugs:
-----------
needs a better plane-fitting method (some kind of 2-dimensional least squares)

i think it has a problem when the selection is bigger than the active layer

there may be rounding errors



see TODO for missing features
