Document some trait methods.

Used `HashMap` and `HashSet` as the base of most examples. Could change it up with different containers, but don't think it's a big deal.