preamble and document setup