What do all these prints do?  Are they just for debugging or are they used for the calculation?