Added some comments.
Minor major changes.