relative file path function

function for getting slaveNames from slaveMap

rename Id to SlaveName and eliminate JSON functions