added crude function to find hand and calculate basic median
loop logic fix, comments
Merge remote-tracking branch 'origin/handDetection'
Debugging errors with ESCAPI