fixed bug on variance computation and comments
change variable name