Writing files with the proper content

- The way of parsing the files has changed completely.
- For now I am writing a html document in / with the html content of the
  files and with the slug as filename. The next step is to use templates
  instead this testing function.