mainwin.cc
few changes in example files