add cache code, and comment out some debug codes
Merge pull request #2 from mmis1000/master

add cache code, and comment out some debug codes