style and docstring audit for core