Added listener code as well as Logger

What if port is not a number? Use `TryParse`