update comments
check if words are valid