Save display output window state in settings to preserve preference / last saved state of the user
Added some documentation comments