modified the MARK table generating code chunk to be separated by species. Needs to be modularized later. It looks really repetitive and bad now, but it will work.