Chris/Chuan, added history cache and test
Merge pull request #39 from creativlimade/master

Chris/Chuan, added history cache and test