fixed some whitespace and kernel warnings