comments to ttvh analysis implemented

-all comments by pasquale implemented.
-methods moved from loopall to photonanalysis
-duplicated functions deleted or removed using switches