refactoring - Patterns struct, merge of check and add in patterns.go, tokens.go