added std=c++11 to compile flags, fixed hand detector, finalizing implementation in main window