Add flags snippet
Add docblocks for model hooks