added comments, and working on making code cleaner
updates