Fix incorrect functions in README examples