Notes on the science of hadith