reduced calculation costs for investment opportunities json generation
fixed possible bugs in quality analyzer