bugfix on if loop

was getting too many comments because of indent problem
new features

- logging of comment ids so bot can recover gracefully from crash
- log file automatically purges old data
- moved from random phrases to randomint to determine winner