update docs for new api, fix mathjax issue