Added Makefile to build PDF documentation. Some handling of direct jobs.