Fixed some errors; added my comments