Added comments and made code easier to read
Merge pull request #7 from DLos/newEdit2

Made code easier to read