Fixed simple bug
Some paths where hardcoded. fixed
Added templating engine.