emission calculation added
restored enddocument-directive, added pdf