Use logger string formatting, add some docstrings
Misc style changes, add more docstrings