added interfaces to fd polling
Added documentation (formatted for sphinx)