checkPattern

added a checkPattern function to check to find a specific seperators at
specific points in the pattern, and check whether it follows that
pattern. Also added output.