Processing compile&runtime exceptions, moar runtime statistic, defines table, some refactoring