Separated preamble into a class file for separate tweaking of content and layout.