Fix bug in requesting event query on snapshots and 2 other things

1. Fix bug in building the request to snapshot without events (Fixes #99)
2. Remove commented code
3. Add .idea to .gitignore