improve "undo" script, update README, tweaks and bugfixes

make "undo" script somewhat usable
add network test
delay start of composition
refactor some code in various places