Adds polling feature

 - Adds polling required struct and functions
 - Adds a testing showing how to use the polling feature