fixed javadoc
include MathJax in javadoc
implemented Metropolis search