the code now has more comments some of the lines were reduced to a shorter size