Add maxAttempt in puliclient task creation
Fix several display bugs in pul_query/pul_rn