Fixed small bugs

-Fixed compilation bug issue
-Replaced raw dimension values with the passed parameters
-Printed the variances instead of the covariance matrix for each class