add some javadoc comment and ajust output format of metrics not json
file
Merge pull request #44 from yanyankangkang/master

add some javadoc comment and ajust output format of metrics not json