added support for math in markdown via mathjax
various stylistics changes