replace tabs to space, style fixes