Fix: several bugs related to generating HTML/plots. Now actually generates
a web page with plots displayed.