hashing out various pieces of the main script and creating settings variables.