update to fix warning
fixed changed integer division. but we have modulo
touch-ups while reviewing LaTeX installation