Refactor kernel.c and class.c

Remove verbose arguments and flags.