slight change to transform_log function to add 'add' parameter for scaling vectors