change parsing of preamble to be more restrictive: one optional
provide statement, followed by any import statements, and changing
tests to match