Partial cleanup and documentation of _style.py