Debugged code for Michelle; fixed problem with choosing starts and endpoints of beta epochs.
Plotting figure as if for paper.