PDF + Back arrow

Big changes on PDF generation.
Added missing back arrows.
Bugfix
Some javadoc