corrected some mistakes and formatting issues