parsing out dimension and metric
updated getDimension function
Merge remote-tracking branch 'origin/nan'
several bug fixes. now loading host and port from config file