UPDATE reorganized code plus better comments
UPDATE bytes size