Fix incorrect use of the terms method and function in README