add ondirty, more docs
v0.4.0