Fix broken example in README and doc comment