Update README.md

Fixes errors in the Quitckstart sample code
Wait. This part should migrate to `Endpoint.apply()` factory method. Why changing this?