fixed bug related to interpretation of "until" date in viewAuditTrail()
removed stale code