function added, README.md edited