OCT_munger fixed to account for edge cases and multiple studies in a single file.