Added debug option.
Changed flex and bison to c files.
Some cleanups.