add main method
Merge pull request #1 from grootzhao/grootA

add main method