added shitty initial version of contig constructor