Logging

Added logging funktionality