Adding code for logger

not sure other files are needed...