Environmental protection, construction of new coke oven machines and their optimisation