fixed mathematical errors and grammatical errors