added functions to clean the list based on the recieving time of the
packet and test codes for listening to socket