Added many more warning flags, fixed associated warnings. Changed RX to detect size of incoming packet, and allocate buffer size appropriately, rather than allocating 100 bytes on the stack, using FIONREAD.