Added a few more comment lines to explain the calculator and how it works.