Extend .gitignore

* Add .idea/ directory.
Merge remote-tracking branch 'origin/master' into ft-string
Add PHPDocs
Extend functionality; update PHPDocs

* Make the duplicates parameter in ::stripDuplicates() optional.