Commented Code

I've commented the code, so others could understand what I've done.