Added paper on how the math and program work