Fix flash messages
Add tags to documents
Kludgy snippet selection/detection