tweaks to demos, add middle-mouse support,