Refactored bestcontig_distrib.pl

Functions simplified and refactored. Output filenames given proper
suffixes.