add typeword function
fix typeword function
update README