Updated with weka code working + Thread implementation