Fixing errors preventing server and client to work.