Barcodes function
Merge branch 'phase2'