updated to handle multiple directories

-- added timing functionality to compare()