code reformated, fixed some minnor issues, updated phpDoc comments
added new feature: set a background (PDF) file easily with setBackgroundTemplate() method