Update README.md
added inference function
roxygenating