TG Long Division with Whole Numbers

Performing long division with whole numbers, step-by-step changes. Uses LaTex, only works in Java.
What happens when the quotient starts with leading 0's? Why does the difference not appear sometimes? There are no minus signs on each line. Is it necessary? How is this different than how you do division?