added comments and updated spacing to fix pull request issues