Adding log functionality, and update README.md