Added homedir variable to CreateDataStructure