Updated to work with current API
Merge pull request #3 from ClockworkNet/master

Updated to work with 1.0 ES API