working example in main.c
add readme document