add red test
impl category_id
refactor debug flag
refactor: to_s -> print
support category_id : close #8

Merge branch 'issues/8'