Update importRecords.R

Improvements to moving the id variable to the first column