refactor meta-to-record as private helper function,
and change upload to return record instead of meta
Merge pull request #1 from intronic/master

refactor meta-to-record and change upload to return record instead of meta