Added libsvm_save_history function and code comments