Merge pull request #35 from 1000ch/dev

add analyze function
Merge pull request #37 from 1000ch/dev

refactoring
remove duplicated variable