added debug info to chd
added two phase
Merge branch 'master' of https://github.com/vadali/cmph