Fix log-trimming bug, updated readme.md