Fixed some spelling.
Added some documentation.