Thanks! I'm pretty sure you meant undo in texture paint mode. It's a known blender issue that it can only undo brush strokes in texture paint mode. So to avoid weird behavior, make sure you're in object mode if you want to do layer operations (add, remove, move up/down, etc.)
Awesome!
Awesome addon!, needs some undo function.