Cleaned up packet.c and renamed a packet send funtion to match the naming conventions we have been following.