Fixed total quartet count; added debugging.
Removed debugging output.