optimize script
create class and implement encapsulation. This fix #34
fix trimming for issues
improve script
Update gemspec to version 1.2.2
Merge branch 'release/1.2.2' into develop