Add study_id as an optional field
Fix tests, allow study_id as optional column

Fixes #346
Merge pull request #348 from adamrp/study_id_command_line

Study id command line