fixed waitForInterrupt so it also works for DataRef, not only RootDataRef
Merge pull request #4 from friedcell/master

fixed waitForInterrupt so it also works for DataRef, not only RootDataRef