Rewrite of all the event and section templates; Add support for new features such as spacing, event handling, and braces location