Fix non-working code samples

Fixed typos in code samples in readme file.