Optimize trigger condition.
Splite library to individual module.
Merge pull request #2 from ufo22940268/develop

Develop