fix syntax error
refactor the code
fix async problem
Merge pull request #83 from kingstenbanh/master

refactor application structure