Added functionalities to seriallisten, modified Makefile