add comments and did some general formatting nothing broken still pass all provided code