Adding support for template swap function to handle struct endian.
Using the correct byte order handling function for network data.
Improving TWI driver; endian handling, printout and interfaces.