Added logging. Updated readme.