initial checkin of gratitude analysis code