Changed outdated "method" to "function" in README.