clean up some typos, including 'maxPetternLength' => 'maxPatternLength' in defaultOptions