Merge pull request #72 from Yonghui56/TH2C

Th2 c
organize the format only.
use pointer instead of body.
for now do not need this.
construct one unique solve function to be called from outside.
Merge pull request #2 from HaibingShao/TH2C

Th2 c