changed .gitignore and added uniqueBy method
added tests
fixed whitespace
added comments
Merge pull request #41 from michaeleisel/uniqueBy_method

Unique by method