Added documentation
Fixed some spelling errors