Made Logger Work

Logger Working,
made some changes