Update wrap.R

Includes metadata in output for any desired future analysis.