I added comments and cleaned up the code
I added comments and cleaned up the code