Add diagrams and brief implementation description in chapter 4

 Also fixed multiple typos in sections written already.
Move listings settings from preamble to settings.tex
Move large diagram and table to appendixes
Update part about type sources in chapter 1
Get rid of remaining blindtext and sample listing

Added statistic reports in JSON sample instead.
Update chapters 4 and 5. Fix multiple typos in chapter 1