Updated for Cocos2.1
Merge pull request #2 from ipodishima/master

Updated for Cocos2D 2.1