/**
* This function will first parse the instances.tab file and 
* get the data metrics for each endpoint. The returned array will then 
* be merged by prefix name with the LSR and one multidimensional array will 
* be returned
*/
function parser($instances, $lsr)
{
    $i = parseInstancesTabFile($instances);
    $r = parseLSR($lsr);
    $a = joinLSRAndInstancesTab($i, $r);
    return $a;
}
/**
* This function will first parse the instances.tab file and 
* get the data metrics for each endpoint. The returned array will then 
* be merged by prefix name with the LSR and one multidimensional array will 
* be returned
*/
function parseBoth($instances_fn, $lsr_fn)
{
    $returnMe = array();
    $instances_arr = parseInstancesTabFile($instances_fn);
    $lsr_arr = parseLSR($lsr_fn);
    $returnMe = joinLSRAndInstancesTab($instances_arr, $lsr_arr);
    return $returnMe;
}