Commented the living shit out of it.

Also I changed a couple of small things to make it more efficient.