I changed some stuff......

Now able to specify a query for the metric request. this means if its a large project and all you want is LOC you can specify the LOC metric and only get the data you need returned.

also added in a exists function to check if a key exists.