* Added reference data to trial initiation * refactored to use private methods * refactored to use private methods