fixing wrong string generation and missed save.

this closes #40