Few fixes to code samples