initial version of datalogger
some work on the generator for the data logger.
generator for data logger
stupid refactoring :-(