In this release you have to run the mainplatform.R that will then source the other two scripts. It calculates the PI depending just on time, on events, or time*magnitude. This is important to know because the sampling rate of the measuring device varies.