setPollFrequency() 

I added function to change the poll interval this should help a little with the issues of the events, interrupt driven solution may be better tough, I just needed this working quick and this was easier.