Progress on socket comm

I have almost a fully working socket comm to the mineral classification.
It should work, but I'm too drukn to continue.