added more comments and pytohn slicing syntax