I wrote this paper and example code this weekend. I'm more of a programmer than a writer / physicist, so if you could look over those and correct my math, grammar, and give me any input I'd appreciate it. The code works, but I'd like to improve it and my understanding of the physics behind it...