Use log for gaussian and gmm pdf to avoid underflow
add some debug info
some addition/change of debug information and some modification to avoid FP exception
add more samples for random init to avoid small covariance
check small numbers to avoid overflow by calculating 1.0 / this number