added pdf support
fixing Makefile