Added some doc and fixed spelling errors