moved body of abb_read_registers() into abb_update_registers. Also some minor refactoring.