Added PDF generator and updated search function.