Added new functions
More functions and events, should be up to date for 1.2.2
Merge pull request #2 from nrbrook/master

Updated API to 1.2.2