Added Methods reveive() and sendCmd(string cmd)