Fixed bug by explicitly providing values in the constructor.
Added traceback message when an unexpected exception has occured.
Added check for a non-singular covariance matrix.