Added a logging framework and changed the README.md.