Merge pull request #1 from indiansky05/master

Pull request
simplified reporting functionality. Added a check for user's participation in lottery. If user participates then the report is sent automatically
Adding some test code to check lottery conditions
Bug fix in test code
commit
Merge remote-tracking branch 'upstream/master'