Added much needed documentation.