Code for getting userinput and creating config file sections