Added api 10 compatibility
Merge pull request #10 from thefabulous/dev

Added api 10 compatibility