Update readme

Example code now taken directly from working examples