Fixed a few bugs pointed out by gcc warnings
Data from recv_tcp_packet is stored in temporary variable in handle_packet
Added handle_data and send_ack; made changes to recv_tcp_packet: copy data only if size > 0