Started adding some comments back to the mathematical methods