Merge pull request #1 from borkweb/master

first version
Merge pull request #2 from borkweb/master

Adding missing event
foundation support