Corrected bugs in 52n SOS server; cleaned client code accordingly