fix polling code

  * Headers were incorrect
  * The poll implementation was missing the reference sign (&)
new test program for polling functions
update README and create TODO