Added timestamp to write_data. Added group_id in printing routes. Fixed typo.