What goes into maintaining accurate payroll records?

What things are needed to keep payroll (salary) records correct and error-free?