update readme, examples
add header_callback prototype