Fix bug in katz() and introduce optional normalization