added some comments and stuff
formatting stuff
going to try the while loop method