Update README.markdown

Updated the main page code example to reflect the new API.