prefix works again
Smileys and images now work (better than they did)

also, changing a little the way main tex files are built, so that it
becomes more configureable (toc, etc.)