implemented configuration file settings, very messy, also added a more manageable user-agent variable