Several changes and improvements

Improvements in logging
Preparation of a data type conversion class