Some refactoring and commenting in wincontrol library.