wrote function to add trials from json
wrote function to add all trials from json
created a function to find and add trials
fixed a typo and made sure adding trials works