Updated logic to remove duplicates.
Updated gitignore list.