saving state. works better now. fixed runnumber issue
fixing plotting, moving helpers to own .py file.