Removed unused function.
Added .gitignore.