Changed comment lines to conform to standard convention. Changed slice declaration to be more concise