added more stuff to the code, still working on the panel plots