instead on using nc command from command line, imlplemented a socket to directly send messages to mochad; changed mochad_port and mochad_host order in the x10 commands functions calls