scanner.c

updated scanner