added optional attach/detach event options
Merge pull request #9 from jedireza/event-options

Added optional attach/detach event options