made units work with the data logger
fixed the DL problem with the return statement