added Qtot as output and allowed PAR input