overhaul on kernel output and added shutdown sequence