Added comments, cleaned stuff up.
Added some comments.