Fixed quex, now runs and outputs to nubugger perfectly