Add some docstrings.
Set encoding.