Minor improvements.
Added PDF file generation in separate submodule.