Added comments.
Updated README and added documentation.