Bugfix
1. Opening preview window displays correct sized preview from begining
2. After preview window opens, focus returns to command window
Code cleanup
Bugfix: shifting focus, not locking it
Doc update