code cleanup

- remove similar loop
- rename methods
- fix complexity method
- add delegate
- build v0.0.15
Merge pull request #23 from mohayonao/code-cleanup

code cleanup