Improve & optimize analyzer, add stat_off option (performance), small fixes