Logfile

I've done the logfile stuff now. Feel free to add it to the main repo now.