Adds logging message.
Adds tests.
Adds missing documentation.