Added cleanup step to prevent memory leaks
Removed "unsigned" from message number: too annoying for a single bit of efficiency
Casted sizeof operation to *signed* short, in order to remove a warning
"Unsigned" removing... again... :-P
Added resend check routines on missing ack from peers