EM algorithm corrected, training.java and verification.java added