More documentation, logging fix