devcode backup

I think I definitively fixed undo, I think!