add -W to specify window size.

various other little fixes.
36 files changed