"restore" the window state on "raise"
Change WinMain type to CALLBACK
Test if covariance matrix is available