More cleaning, fixed writing wrong float value within socket_write_float