Code review and cleanup

- handle divide by 0 error in earnings info
- cleaned up red flags procedures