Fixed example crash, updated gitignore

Fixed example crash, updated gitignore