Updated with documents and some cleanups: new outputwriter: MetricsdWriter and new metricsType in query in the json config file

Hey,
    I updated the code with tab formats and add some documents. If you need any more information, please let me know.
   Thank you.
   Yongjun Rong