- corrected strings redrawing more than necessary.
- fixed window 'maximize' function
- removed some unnecessary code.