working rx and tx, increases packet count appropriately. Needs work on buffer sizes and also optimisation.