Added lots of commenting and renamed a method