work time and date
changes to include group details in the f_table and in the PCA, not tested with the RGG, output pdf not changed yet