closes #5; re-opened from stdin pipe

 * refactoring, and add test code

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>
increase version and update documents

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>