Renaming of variables to make easier to read. Cleaned up. Made it so that input files are sourced BASH files.