Many tweaks to clean up code and try to get sounds to work on the server.