Minor code cleanup.
Update gitignore.