Fixed import and name errors in examples.
Merge pull request #5 from echlebek/master

Fixed import and name errors in examples.