Jmx docs

Documentation for JMX 
+ fix a small bug in jmx test