update docs and fix mathjax issue