add constants.h
Merge branch 'Ziheng-Deng'