encapsulate function getlistenfd()
add folders examples and test
change test to tests