Fixed stuff. Added comments.