Implement logging enabled switch, fix log.js errors, update README, fix recents issue