vocab.Index.dump_terms_csv() writes to string not directly to file

To be more consistent with behavior of other dump functions.
updated vocab usage documentation
unit tests for DDR.vocab