Added support for not closing a window with only one tab.
Organized configuration a bit better.