add README and rename function