Small bugs

Some small fixes from trello cards, pdf title etc and more tolerant of different T sizes and w/h in viewport.