Renamed variable and added comment
Logger can now write to files