Differnt Qsquared formulas added // Tutorial considerably extended