Fix #1 and add .gitignore

Fix #1 and add .gitignore