add a C version
update readme