Fix package name, a few bugs, add error handling

The ports on the client and server were mismatching. Also added error
messages and connection information.