Fixed broken patterns

Fixed out of bounds indices, added titles to patterns