Changed token struct and made startsWith visible to checks
Added try/catch and initial checks
Changed param name to be consisten
Added anon namespace, and first two checks working!