refactor Message#to_string to Message#to_s
refactor to use Message#parts and better variable names in handle_message
ensuring @port is an int, and also validation for its value
better port range validation
Port range validation moved into Server class