Added cleaning routine to catfacts module