added writing output to file in lab2_NEH in sterowanie procesami dyskretnymi