add total and items reader
better DSL for rule
update checkout class
Merge pull request #3 from JIAZHEN/improve-rule-dsl

Improve rule dsl