adding controller method for polling, adding polling example
api doc fixes