Implemented export of cash flows.

Closes #171