Adds functions, some loops and a page template