Fix extracting features from files in a directory
Fixed distance calculation (or so I think)