fixed the logging and updated the README