modified csv processing: added vars for marshal configuration and made things more explicit