fixes issue #11, permitting delimiters for structure arrays.

Also added some error checking.