Variables

I renamed a lot of the variables so you can tell what they do.