Fixed whitespace error in scanner
fixed small error
fixed some compiler warnings