Writer can be stopped and restarted

Partly rewrote the writer. Signals are now handed over by a seperate
pipe. Can be started, stopped and closed. Uses timestamp as filename.