rewrite source code

improve source code for easy reading.
Merge pull request #9 from vee-bizidea/master

update source code.