add output sum
fix condition of output sum
fix README
Merge pull request #7 from harukasan/feature/sum_output

add sum field