fixed some layout bugs, added PDFmaker class