Fixed divide-by-zero

Fixed divide-by-zero error when sequences in a file or across all files total zero
Fixes #458