removed targetvar.h
renamed logger and converted into a class