Fixed some errors.

The application works and requests can be sent to the server. The IP
Address is still hardcoded, future version has to be configurable.