Added messages.py for hooks and changed templates

Templates now yaml