Homematic: Class headers and logging / Exception handling improvements.