Some rework so that equations aren't messed up

Reworked for equations in Sphinx. Added the png option to sphinx extensions so that browsers without the javascript tool can still display equations without errors. 

Note, you will get a warning if you build the docs on a machine without LaTex, but we don't use any latex directives (now).