Clean the output.

Removed the write functions in the classes to have a proper inline ouput
at the end of the PHP file.
Remove the <p> for the footnotes.