Fixes for stocks and flows.

Implemented stock and flows for mortgages
Relates to #88