Examples

add examples and fix trouble with uint8_t