window manager set up
flags
docs
error catching and tests