Added commands to control scratchpad window.
Merged changes from work: Window settings, etc.