added comments and collapsable formatting to index