Added some debugging

Also moved setsockopt to call before bind() silly