reformat if blocks, etc. add method docblocks - made best guess as to parameter types
roll most of hanneskod's changes from FPDF_EXTENDED into the base class. Emphatically no longer backwards-compatible