fixed a few minor errors and made some changes to my comments