added recvData function for data. Had to move boxes all day and woke up late, cut me some slack :(