removed contig weight & code cleanup

Contig weight was calculated based on a false assumption. It is actually not useful.