Fix string issue, start refactor of analysis blocks, and more.
Greatly refactor and fix text search.
Add mean_cost and total_out_of_faction_influence fttns.
Refactor analysis blocks and add program/memory analysis.