refactored
script to output relevant fields for model vars in csv form