little changes, prepared net part, writed code for sending