mopping up some cruft in plot_lib
added beginnings of hist lib