code cleanup

- remove duplicate code
- build v0.0.12
Merge pull request #19 from mohayonao/code-cleanup

code cleanup