adding kernel name test to listing functions to determine which colour switch to use

also switching to soft tabs