added comments organizing code into sections