Add code to automatically end segment groups when a non-matching segment is found. Fixes #75 (#76)
* Add code to automatically end segment groups when a non-matching segment is found
* Do not require standard headers/trailers to be modelled explicitly