Changed directory structure. Added fs.writeFile to save a
configuration which has been created