Reformatted code, added attributions, added new function, multiplot() for plotting multiple ggplot graphs.