added functionality to log desired samples by system time also changed sample size to 30, for now at least