Add .gitignore
Fix sample code