Updated the codeForManuscript file and fixed the a bug in the insertions.pl