add methos and fix bug
Merge pull request #2 from hiraoka/fix_bug

add methos and fix bug