Fixed a few bugs in the scanner
Fixed bug where passing no restrictions to the toke() method, it crashed
Debugging prints improved