Cleaned up the comments a lot. (Hopefully my code can now make sense to someone other than me x.x)