Closes #129, allows duplicate values

I broke down and had to add this in! For duplicates to work, you must have the `mode` set to `multi`, otherwise it wouldn't make sense.

Documentation changes to follow.

I've included the compiled files too. Since I only added the `duplicates` option, I don't know why there are so many other changes? If you can figure this out, I can change the commits.