adding prefix method for getEnvClusterXML, adding create dir if absent in flattenAndPutDataInFolder, formatting