Added reverse17 macro for swapping the bytes in 16 bit values.