work done by vjunet on checkEngagements and makeMatch
code cleaning, added comments
made test simulation
Merge branch 'master' of https://github.com/vjunet/project_template