move some static function from .h to .m

Signed-off-by: Jun <tobefuturer@gmail.com>
Merge pull request #4 from tobefuturer/master

Move some static function from .h to .m