Don't need to include the preamble. This is handled by subfiles. How nice!
Made a main directory for the main PDF and stuff. This works better with the subfiles package.

Rules to generate the main pdf, and clean added.
Adjusted the setting of the viewer variable.
Fixed up setting the VIEWER variable.
Adjusted this so we take the main directory into account as well now.