added descriptions to code