Added port flag and fixed checkError()

Can now be run as non-root user by selecting a port with:
$ godns -port=<port number>