Fixed some bugs in the automat.
Scanner prototype, must be debugged.
The test project for the scanner.