text: // Packages needed for this application
  const inquirer = require('inquirer');
  const generateMarkdown = require('./utils/generateMarkdown');
  const fs = require('fs');
  
  // Questions asked in the terminal, and names coorespond to the object properties that are created to store the input
  const questions = [
    {
      type: 'input',
      message: 'What is your GitHub user name?',
      name: 'username',
    },
    {
      type: 'input',
      message: "What is the CaSe SenSiTiVe name of your Github repository?",
      name: 'repo',
    },
    {
      type: 'input',
      message: "What is your project's title?",
      name: 'title',
    },
    {
      type: 'input',
      message: 'What would you like to name your markdown file?',
      name: 'markdown',
    },
    {
      type: 'input',
      message: "Provide a short description of your program's functionality",
      name: 'desc',
    },
    {
      type: 'input',
      message: 'What are the installation instructions?',
      name: 'install',
    },
    {
      type: 'input',
      message: 'What is the usage information?',
      name: 'usage',
    },
    {
      type: 'input',
      message: 'What are your contribution guidelines?',
      name: 'contr',
    },
    {
      type: 'input',
      message: 'Please provide test instructions for this program.',
      name: 'test',
    },
    {
      type: 'rawlist',
      message: 'What license, if any, are you using for this project?',
      name: 'license',
      choices: [
        {name: 'Apache License 2.0', value: 'apache'},
        {name: 'BSD 3-Clause "New" or "Revised" license', value: 'bsd3'},
        {name: 'BSD 2-Clause "Simplified" or "FreeBSD" license', value: 'bsd2'},
        {name: 'GNU General Public License (GPL)', value: 'gpl'},
        {name: 'GNU Library or "Lesser" General Public License (LGPL)', value: 'lgpl'},
        {name: 'MIT license', value: 'mit'},
        {name: 'Mozilla Public License 2.0', value: 'mozilla'},
        {name: 'Eclipse Public License version 2.0', value: 'ecl'},
        {name: 'none', value: ''},
      ]
    },
    {
      type: 'input',
      message: 'What is your developer email?',
      name: 'email',
    },
  ];
  
  // Function that creates markdown file and adds it to the dist folder in the repository
  function writeToFile(fileName, text) {
    fs.writeFile(`./dist/${fileName}.md`, text, (err) => {
      err ? console.error(err) : console.log('Success!')
    })
  };
  
  
  // Initializes the terminal questions
  function init() {
    inquirer
    .prompt(questions)
      .then ((data) => {
        const markdownText = generateMarkdown(data);
        writeToFile(data.markdown, markdownText)
      })
      .catch((err) => {console.log(err)});
  };
  
  // Function call to initialize application
  init();
  