Fixed a few bugs, now we get an html file at the end. MakeContrast bug still remains