fix documentation mis-spelling and source code comments according
to Haribabu's suggestion.