Added cmake #7
fixed some errors
add simple receivePacket implementation