Updated functions.py and bin_and_plot.py to agree with changes made on local copies following creation of repository.