catch KeyboardInterrupt for dump_cnt before exit
add readme, style fix, sample update