Add some documentation, and also a logging setup method