delete some useless codes, use dispath_once to create sigleton
Merge pull request #6 from juanmao/master

delete some useless codes, use dispath_once to create sigleton