Specify metric names

Hello,

following issue #9 I have modified your script to allow to specify the metric name you want to use, but still allowing the current behaviour (without indicating metric name).
I have updated the xml file and README.md, and have tried to follow your coding style.

If the solution is ok for you, you can merge the code, but if you have any remarks, let me know.