Updated last doc example to be runnable.
Added example and updated .gitignore.