Fixed *all* compiler errors in both client and server and their respective files. TODO: test client adn server