deleted uneeded comments, added explanation in comments, formatted, final commit for assignment