Fixed 'attemps' to 'attempts', added maxAttempts event.
Merge pull request #1 from aviramst/master

Fixed 'attemps' to 'attempts', added maxAttempts event.