Logging

Introduced logging in some classes.