Fixing undefined variable bug. Added .gitignore.