code cleanup

- remove similar loop
- rename methods
- fix complexity method
- add delegate
- build v0.0.15