added templating mechanism and intial module-rendering