cleaned up sample and added static window class
Merge pull request #160 from mtnlife999/master

cleaned up sample and added static window class