Enable/disable smoothing with tg option
Add basic editing

Also simplify/flatten when activating/deactivating isolated mode