Changes to readme file

add 'exit' to the example code