Added PDF report functionality; refactor of AR