second review of code, correct some logic errors in the code; haven't changed to the new structure
Merge branch 'master' of https://github.com/daizhihui/tinyBase