Added basic send and recieve functionality of sockets