Removed dummy id func.
Fix handling empty base case.
Better code.
Contigs finding.