Fix spelling errors
Add documentation comments