removed ipdb statement from kern, cleaned up some nasty whitespace